package com.ssy.lingxi.platform.manage.service;

import com.ssy.lingxi.common.model.dto.UserLoginCacheDTO;
import com.ssy.lingxi.common.response.Wrapper;
import com.ssy.lingxi.platform.manage.api.model.dto.shop.ShopMemberInfoDTO;
import com.ssy.lingxi.platform.manage.entity.base.ShopRuleDetail;
import com.ssy.lingxi.platform.manage.model.request.common.CommonIdRequest;
import com.ssy.lingxi.platform.manage.model.request.shop.ShopRuleDetailRequest;

import java.util.List;

/**
 * @author wyx
 * @version 2.0.0
 * @date 2021-09-26
 */
public interface IShopActivityService {

    /**
     * 获取自营商城详情
     */
    Wrapper<ShopRuleDetail> details(CommonIdRequest request);

    /**
     * 根据会员ID获取自营商城列表
     */
    Wrapper<List<ShopRuleDetail>> findListByMemberId(Long memberId);

    /**
     * 获取自营商城列表
     */
    Wrapper<List<ShopRuleDetail>> list(UserLoginCacheDTO sysUser);

    /**
     * 设置默认自营商城
     * @param id 商城明细id
     * @param isDefault 是否默认：0:否 1.是
     */
    Wrapper<Void> updateIsDefault(Long id, Integer isDefault);

    /**
     * 修改自营商城信息
     */
    Wrapper<Void> update(ShopRuleDetailRequest shopRuleDetailRequest);

    Wrapper<Boolean> existShop(ShopMemberInfoDTO dto);
}
